//
//  UIView+ATFrame.h
//  ABCTime
//
//  Created by MCKing on 2017/11/11.
//  Copyright © 2017年 100TAL. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (ATFrame)

@property(nonatomic, readonly) CGFloat minY;

@property(nonatomic, readonly) CGFloat minX;

@property(nonatomic, readonly) CGFloat maxY;

@property(nonatomic, readonly) CGFloat maxX;

@property(nonatomic, assign) CGFloat x;

@property(nonatomic, assign) CGFloat y;

@property(nonatomic, assign) CGFloat width;

@property(nonatomic, assign) CGFloat height;

@property(nonatomic, assign, readonly) CGPoint boundsCenter;

@property(nonatomic) CGSize size;

@property(nonatomic) CGFloat centerX;

@property(nonatomic) CGFloat centerY;

@property(nonatomic) CGPoint origin;

@property(nonatomic) CGFloat top;

@property(nonatomic) CGFloat bottom;

@property(nonatomic) CGFloat left;

@property(nonatomic) CGFloat right;

- (BOOL)at_intersectWithView:(UIView*)view;

- (void)setBoundsScale:(CGFloat)scale;

- (void)sizeScale:(CGFloat)scale;

- (void)at_layoutSubviewsImmediately;
- (void)at_setFrameAndTriggerLayoutIfNeeded:(CGRect)frame;
@end
